package com.spkj.srb.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spkj.srb.mybatisplus.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.security.PrivateKey;
import java.util.List;

/**
 * @author spkj
 * @create 2022-06-06 16:46
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    List<User> selectAllByUserName(@Param("name") String name);
    List<User> selectAllByUserNamePage(@Param("name") String name, Page<User> page);
    Page<User> a(@Param("name") String name, Page<User> page);
}
